import { Injectable } from '@angular/core';
import { Aggregation, Query, QueryPackage } from './classes';
import { Permission, User } from './app.interface';
import { ShowService } from './show.service';

@Injectable({
  providedIn: 'root',
})
export class StoreService {
  constructor(private ss: ShowService) {}
  public loginUser: User = new User();
  public claims: any;
  public permissions: any;
  public conf: {
    authUrl: string;
    clientId: string;
    clientPassword: string;
    apiUrl: string;
    workMode: string;
    language: string;
  } = {
    authUrl: '',
    clientId: '',
    clientPassword: '',
    apiUrl: '10.160.12.34:3000/',
    workMode: 'default',
    language: 'cn',
  };
  get currentLanguage() {
    if (this.conf.language === undefined) this.conf.language = 'cn';
    return this.ss.language[this.conf.language];
  }
  public label = undefined;
  public Authorize = false;
  public maxModel = 150;
  public CommonConditionList: queryCondition[] = [
    {
      name: 'ID',
      show: '住院人次',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'MRID',
      show: '病案号',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'PatientName',
      show: '患者姓名',
      selected: false,
      options: [],

      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'Gender',
      show: '性别',
      selected: false,
      options: [],

      db: '',
      datatype: '',
      dictable: 'Dic_Gender',
      dicColumn: 'GenderName,GenderCode',
    },
    {
      name: 'Age',
      show: '年龄',
      selected: false,
      options: [],

      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'Birthday',
      show: '生日',
      selected: false,
      options: [],

      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'AdmissionDateTime',
      show: '入院时间',
      selected: false,
      options: [],

      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'InDepartCode',
      show: '入院科别编码',
      selected: false,
      options: [],

      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_Department',
      dicColumn: 'DepCode,Name',
    },
    {
      name: 'InDepart',
      show: '入院科别',
      selected: false,
      options: [],

      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_Department',
      dicColumn: 'Name,DepCode',
    },
    {
      name: 'DischargeDateTime',
      show: '出院时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'OutDepartCode',
      show: '出院科别编码',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_Department',
      dicColumn: 'DepCode,Name',
    },
    {
      name: 'OutDepart',
      show: '出院科别',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_Department',
      dicColumn: 'Name,DepCode',
    },
    {
      name: 'InpatientDay',
      show: '住院天数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'HospitalizedTimes',
      show: '住院次数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'Totalcost',
      show: '总花费金额',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'SelfPayment',
      show: '自付金额',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'Doctor.编码员.姓名',
      show: '编码员',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    // {
    //   name: "PaymentTypeCode",
    //   show: "医疗付款方式编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_PayType",
    //   dicColumn: "PayTypeCode,PayTypeName",
    // },
    {
      name: 'PaymentType',
      show: '医疗付款方式',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_PayType',
      dicColumn: 'PayTypeName,PayTypeCode',
    },
    // {
    //   name: "DischargePathCode",
    //   show: "离院方式编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_DischargeType",
    //   dicColumn: "DischargeCode,DischargeType",
    // },
    {
      name: 'DischargePath',
      show: '离院方式',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_DischargeType',
      dicColumn: 'DischargeType,DischargeCode',
    },
    // {
    //   name: "AdmittedCode",
    //   show: "入院病情编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_AdmissionCondition",
    //   dicColumn: "AdmissionConditionCode,AdmissionConditionName",
    // },
    {
      name: 'Admitted',
      show: '入院病情',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_AdmissionCondition',
      dicColumn: 'AdmissionConditionName,AdmissionConditionCode',
    },
    {
      name: 'ConsultintNum',
      show: '患者就诊号',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'CodeTime',
      show: '编码时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'CodeState',
      show: '编码状态',
      selected: false,
      options: [
        { value: '100', show: '未开始编码' },
        { value: '200', show: '编码中' },
        { value: '300', show: '病理未归' },
        { value: '400', show: '病理已归待编码' },
        { value: '1000', show: '编码完成' },
      ],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: 'value,show',
    },
    // {
    //   name: "MRQuantityCode",
    //   show: "病案质量编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_MRQuality",
    //   dicColumn: "QualityCode,Quality",
    // },
    {
      name: 'MRQuantity',
      show: '病案质量',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_MRQuality',
      dicColumn: 'Quality,QualityCode',
    },
    // {
    //   name:
    //     '{"script" : {"source": "doc["VOperate.OperateBeginTime"].value-doc["AdmissionDateTime"].value"}}',
    //   show: '术前住院时间',
    //   selected: false,
    //   options: [],
    //   db: '',
    //   datatype: '',
    //   dictable: '',
    //   dicColumn: '',
    // },
  ];

  public BaseConditionList: queryCondition[] = [
    // {
    //   name: "AutopsyCode",
    //   show: "死亡患者尸检编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Autopsy",
    //   dicColumn: "AutopsyCode,AutopsyName",
    // },
    {
      name: 'Autopsy',
      show: '死亡患者尸检',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Autopsy',
      dicColumn: 'AutopsyName,AutopsyCode',
    },
    // {
    //   name: "BirthAreaCode",
    //   show: "出生地址（县）编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_Area",
    //   dicColumn: "AreaCode,AreaName",
    // },
    {
      name: 'BirthArea',
      show: '出生地址（县）',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_Area',
      dicColumn: 'AreaName,AreaCode',
    },
    // {
    //   name: "BirthCityCode",
    //   show: "出生地址（市）编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_City",
    //   dicColumn: "CityCode,CityName",
    // },
    {
      name: 'BirthCity',
      show: '出生地址（市）',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_City',
      dicColumn: 'CityName,CityCode',
    },
    // {
    //   name: "BirthProvinceCode",
    //   show: "出生地址（省）编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_Province",
    //   dicColumn: "ProvinceCode,ProvinceName",
    // },
    {
      name: 'BirthProvince',
      show: '出生地址（省）',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_Province',
      dicColumn: 'ProvinceName,ProvinceCode',
    },
    // {
    //   name: "ABO",
    //   show: "血型编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_BloodType",
    //   dicColumn: "BloodTypeCode,BloodTypeName",
    // },
    {
      name: 'ABO',
      show: '血型',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_BloodType',
      dicColumn: 'BloodTypeName,BloodTypeCode',
    },
    // {
    //   name: "AdmissionPath",
    //   show: "入院途径编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_AdmissionPath",
    //   dicColumn: "AdmissionPathCode,AdmissionPath",
    // },
    {
      name: 'AdmissionPath',
      show: '入院途径',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_AdmissionPath',
      dicColumn: 'AdmissionPath,AdmissionPathCode',
    },

    {
      name: 'ADLAfter',
      show: '日常生活能力评定量表得分，出院',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'ADLBefore',
      show: '日常生活能力评定量表得分，入院',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },

    {
      name: 'CriticalMR',
      show: '危急重病例',
      selected: false,
      options: [
        { value: '是', show: '是' },
        { value: '否', show: '否' },
      ],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: 'value,show',
    },

    {
      name: 'FollowTerm',
      show: '随诊期限',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    // {
    //   name: "FollowUpCode",
    //   show: "是否随诊编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_FollowUp",
    //   dicColumn: "FollowUpCode,FollowUpName",
    // },
    {
      name: 'FollowUp',
      show: '是否随诊',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_FollowUp',
      dicColumn: 'FollowUpName,FollowUpCode',
    },
    // {
    //   name: "GenderCode",
    //   show: "性别编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Gender",
    //   dicColumn: "GenderCode,GenderName",
    // },
    {
      name: 'HealthCard',
      show: '健康卡号',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },

    {
      name: 'IDCard',
      show: '证件号码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    // {
    //   name: "IdTypeCode",
    //   show: "证件类型编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_IdType",
    //   dicColumn: "IdTypeCode,IdTypeName",
    // },
    {
      name: 'IdType',
      show: '证件类型',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IdType',
      dicColumn: 'IdTypeName,IdTypeCode',
    },
    {
      name: 'InSickRoomCode',
      show: '入院病房编码',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_Department',
      dicColumn: 'DepCode,Name',
    },
    {
      name: 'InSickRoom',
      show: '入院病房',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_Department',
      dicColumn: 'Name,DepCode',
    },

    // {
    //   name: "IntractableMRCode",
    //   show: "疑难病例编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_IntractableMR",
    //   dicColumn: "IntractableMRCode,IntractableMRName",
    // },
    {
      name: 'IntractableMR',
      show: '疑难病例',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IntractableMR',
      dicColumn: 'IntractableMRName,IntractableMRCode',
    },
    // {
    //   name: "IsDrugAllergyCode",
    //   show: "药物过敏编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_IsDrugAllergy",
    //   dicColumn: "IsDrugAllergyCode,IsDrugAllergyName",
    // },
    {
      name: 'IsDrugAllergy',
      show: '药物过敏',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IsDrugAllergy',
      dicColumn: 'IsDrugAllergyName,IsDrugAllergyCode',
    },
    // {
    //   name: "MarriageCode",
    //   show: "婚姻状态编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_MarriageType",
    //   dicColumn: "MarriageTypeCode,MarriageTypeName",
    // },
    {
      name: 'Marriage',
      show: '婚姻状态',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_MarriageType',
      dicColumn: 'MarriageTypeName,MarriageTypeCode',
    },

    // {
    //   name: "NationalityCode",
    //   show: "国籍编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_Nationality",
    //   dicColumn: "NationalityCode,NationalityName",
    // },
    {
      name: 'Nationality',
      show: '国籍',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_Nationality',
      dicColumn: 'NationalityName,NationalityCode',
    },
    // {
    //   name: "NationCode",
    //   show: "民族编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_Nation",
    //   dicColumn: "NationCode,NationName",
    // },
    {
      name: 'Nation',
      show: '民族',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_Nation',
      dicColumn: 'NationName,NationCode',
    },
    // {
    //   name: "NativeProvinceCode",
    //   show: "籍贯（省）编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_Province",
    //   dicColumn: "ProvinceCode,ProvinceName",
    // },
    {
      name: 'NativeProvince',
      show: '籍贯（省）',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_Province',
      dicColumn: 'ProvinceName,ProvinceCode',
    },
    {
      name: 'Newborn_AdmissionWeight',
      show: '新生儿入院体重',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'NewBorn_Day',
      show: '新生儿年龄  天',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'NewBorn_Month',
      show: '新生儿年龄  月',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'NewBorn_Weight',
      show: '新生儿出生体重',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },

    // {
    //   name: "VocationCode",
    //   show: "职业编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Occupation",
    //   dicColumn: "OccupationCode,OccupationName",
    // },
    {
      name: 'Vocation',
      show: '职业',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Occupation',
      dicColumn: 'OccupationName,OccupationCode',
    },

    {
      name: 'QualityDate1',
      show: '质控日期1',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'QualityDate2',
      show: '质控日期2',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    // {
    //   name: "ReadmissionIn31Code",
    //   show: "出院31天再入院计划编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_ReadmissionIn31",
    //   dicColumn: "ReadmissionIn31Code,ReadmissionIn31Name",
    // },
    {
      name: 'ReadmissionIn31',
      show: '出院31天再入院计划',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ReadmissionIn31',
      dicColumn: 'ReadmissionIn31Name,ReadmissionIn31Code',
    },

    {
      name: 'RescueSuccessTime',
      show: '成功次数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'RescueTime',
      show: '抢救次数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'RespiratorTime',
      show: '呼吸机使用时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    // {
    //   name: "RhCode",
    //   show: "RH血型编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Rh",
    //   dicColumn: "RhCode,Rh",
    // },
    {
      name: 'RH',
      show: 'RH血型',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Rh',
      dicColumn: 'Rh,RhCode',
    },
  ];
  public InPatientConditionList: queryCondition[] = [
    {
      name: 'Diagnosis.ClinicDiagnosis',
      show: '出院临床诊断',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'Diagnosis.DiagnosisICDCode',
      show: '出院北京诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'Diagnosis.DiagnosisICDName',
      show: '出院北京诊断名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'Diagnosis.InternalICDCode',
      show: '出院协和诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'Diagnosis.InternalICDName',
      show: '出院协和诊断名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'Diagnosis.DiagnosisOrder',
      show: '诊断顺序',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    // {
    //   name: "Diagnosis.DiagnosticbasisCode",
    //   show: "出院诊断依据编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Diagnosticbasis",
    //   dicColumn: "DiagnosticbasisCode,DiagnosticbasisName",
    // },
    {
      name: 'Diagnosis.Diagnosticbasis',
      show: '出院诊断依据',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Diagnosticbasis',
      dicColumn: 'DiagnosticbasisName,DiagnosticbasisCode',
    },
    // {
    //   name: "Diagnosis.DifferentiationCode",
    //   show: "分化程度编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Differentiation",
    //   dicColumn: "DifferentiationCode,DifferentiationName",
    // },
    {
      name: 'Diagnosis.Differentiation',
      show: '分化程度',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Differentiation',
      dicColumn: 'DifferentiationName,DifferentiationCode',
    },
    // {
    //   name: "Diagnosis.DischargeStateCode",
    //   show: "疗效编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_CurativeEffect",
    //   dicColumn: "CurativeEffectCode,CurativeEffectName",
    // },
    {
      name: 'Diagnosis.DischargeState',
      show: '疗效',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_CurativeEffect',
      dicColumn: 'CurativeEffectName,CurativeEffectCode',
    },
    {
      name: 'Diagnosis.ExternalInjuryICDCode',
      show: '出院北京损伤中毒编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'Diagnosis.ExternalInjuryICDName',
      show: '出院北京损伤中毒',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'Diagnosis.InternalInjuryICDCode',
      show: '出院协和损伤中毒编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'Diagnosis.InternalInjuryICDName',
      show: '出院协和损伤中毒',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'Diagnosis.InternalPathologyICDCode',
      show: '出院协和病理编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Morphology',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'Diagnosis.InternalPathologyICDName',
      show: '出院协和病理',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Morphology',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'Diagnosis.IsBaby',
      show: '是否婴儿',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IsBaby',
      dicColumn: 'IsBabyName,IsBabyCode',
    },
    {
      name: 'OutSickRoomCode',
      show: '出院病房编码',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_Department',
      dicColumn: 'DepCode,Name',
    },
    {
      name: 'OutSickRoom',
      show: '出院病房',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_Department',
      dicColumn: 'Name,DepCode',
    },
    {
      name: 'Diagnosis.PathologyICDCode',
      show: '出院北京病理编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Morphology',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'Diagnosis.PathologyICDName',
      show: '出院北京病理',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Morphology',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'Diagnosis.PathologyNum',
      show: '病理号',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'Diagnosis.GBICDCode',
      show: '出院国标诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Diagnosis',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'Diagnosis.GBICDName',
      show: '出院国标诊断名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Diagnosis',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
    {
      name: 'Diagnosis.PathologyGBICDCode',
      show: '出院国标病理编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Morphology',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'Diagnosis.PathologyGBICDName',
      show: '出院国标病理名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Morphology',
      dicColumn: 'TargetICDName,TargetICDCode',
    },

    {
      name: 'BaseDiagnosis.ClinicDiagnosis',
      show: '出院主临床诊断',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseDiagnosis.DiagnosisICDCode',
      show: '出院主北京诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'BaseDiagnosis.DiagnosisICDName',
      show: '出院主北京诊断名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'BaseDiagnosis.InternalICDCode',
      show: '出院主协和诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'BaseDiagnosis.InternalICDName',
      show: '出院主协和诊断名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'BaseDiagnosis.Diagnosticbasis',
      show: '出院主诊断依据',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Diagnosticbasis',
      dicColumn: 'DiagnosticbasisName,DiagnosticbasisCode',
    },
    {
      name: 'BaseDiagnosis.Differentiation',
      show: '主分化程度',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Differentiation',
      dicColumn: 'DifferentiationName,DifferentiationCode',
    },
    {
      name: 'BaseDiagnosis.DischargeState',
      show: '主疗效',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_CurativeEffect',
      dicColumn: 'CurativeEffectName,CurativeEffectCode',
    },
    {
      name: 'BaseDiagnosis.ExternalInjuryICDCode',
      show: '出院主北京损伤中毒编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'BaseDiagnosis.ExternalInjuryICDName',
      show: '出院主北京损伤中毒',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'BaseDiagnosis.InternalInjuryICDCode',
      show: '出院主协和损伤中毒编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'BaseDiagnosis.InternalInjuryICDName',
      show: '出院主协和损伤中毒',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'BaseDiagnosis.InternalPathologyICDCode',
      show: '出院主协和病理编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Morphology',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'BaseDiagnosis.InternalPathologyICDName',
      show: '出院主协和病理',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Morphology',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'BaseDiagnosis.PathologyICDCode',
      show: '出院主北京病理编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Morphology',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'BaseDiagnosis.PathologyICDName',
      show: '出院主北京病理',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Morphology',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'BaseDiagnosis.PathologyNum',
      show: '主病理号',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseDiagnosis.GBICDCode',
      show: '出院主国标诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Diagnosis',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'BaseDiagnosis.GBICDName',
      show: '出院主国标诊断名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Diagnosis',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
    {
      name: 'BaseDiagnosis.PathologyGBICDCode',
      show: '出院主国标病理编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Morphology',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'BaseDiagnosis.PathologyGBICDName',
      show: '出院主国标病理名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Morphology',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
  ];

  public ClinicConditionList: queryCondition[] = [
    {
      name: 'VClinicDiagnosis.ClinicDiagnosis',
      show: '门急诊临床诊断',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VClinicDiagnosis.DiagnosisOrder',
      show: '门急诊诊断顺序',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VClinicDiagnosis.DiagnosisICDCode',
      show: '门急诊北京诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'VClinicDiagnosis.DiagnosisICDName',
      show: '门急诊北京诊断',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'VClinicDiagnosis.DiagnosticbasisCode',
      show: '门急诊诊断依据编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Diagnosticbasis',
      dicColumn: 'DiagnosticbasisCode,DiagnosticbasisName',
    },
    {
      name: 'VClinicDiagnosis.Diagnosticbasis',
      show: '门急诊诊断依据',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Diagnosticbasis',
      dicColumn: 'DiagnosticbasisName,DiagnosticbasisCode',
    },
    // {
    //   name: "VClinicDiagnosis.DifferentiationCode",
    //   show: "门急诊分化程度编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Differentiation",
    //   dicColumn: "DifferentiationCode,DifferentiationName",
    // },
    {
      name: 'VClinicDiagnosis.Differentiation',
      show: '门急诊分化程度',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Differentiation',
      dicColumn: 'DifferentiationName,DifferentiationCode',
    },
    // {
    //   name: "VClinicDiagnosis.DischargeStateCode",
    //   show: "门急诊疗效编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_CurativeEffect",
    //   dicColumn: "CurativeEffectCode,CurativeEffectName",
    // },
    {
      name: 'VClinicDiagnosis.DischargeState',
      show: '门急诊疗效',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_CurativeEffect',
      dicColumn: 'CurativeEffectName,CurativeEffectCode',
    },
    {
      name: 'VClinicDiagnosis.ExternalInjuryICDCode',
      show: '门急诊北京损伤中毒编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'VClinicDiagnosis.ExternalInjuryICDName',
      show: '门急诊北京损伤中毒',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'VClinicDiagnosis.InternalICDCode',
      show: '门急诊协和诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'VClinicDiagnosis.InternalICDName',
      show: '门急诊协和诊断',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'VClinicDiagnosis.InternalInjuryICDCode',
      show: '门急诊协和损伤中毒编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'VClinicDiagnosis.InternalInjuryICDName',
      show: '门急诊协和损伤中毒',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'VClinicDiagnosis.InternalPathologyICDCode',
      show: '门急诊协和病理编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Morphology',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'VClinicDiagnosis.InternalPathologyICDName',
      show: '门急诊协和病理',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Morphology',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    // {
    //   name: "VClinicDiagnosis.IsBabyCode",
    //   show: "门急诊是否婴儿编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_IsBaby",
    //   dicColumn: "IsBabyCode,IsBabyName",
    // },
    {
      name: 'VClinicDiagnosis.IsBaby',
      show: '门急诊是否婴儿',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IsBaby',
      dicColumn: 'IsBabyName,IsBabyCode',
    },
    {
      name: 'VClinicDiagnosis.PathologyICDCode',
      show: '门急诊北京病理编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Morphology',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'VClinicDiagnosis.PathologyICDName',
      show: '门急诊北京病理',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Morphology',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'VClinicDiagnosis.PathologyNum',
      show: '门急诊病理号',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VClinicDiagnosis.GBICDCode',
      show: '门急诊国标诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Diagnosis',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'VClinicDiagnosis.GBICDName',
      show: '门急诊国标诊断名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Diagnosis',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
    {
      name: 'VClinicDiagnosis.PathologyGBICDCode',
      show: '门急诊病理国标编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Morphology',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'VClinicDiagnosis.PathologyGBICDName',
      show: '门急诊病理国标名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Morphology',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
  ];
  public AllergyConditionList: queryCondition[] = [
    {
      name: 'VAllergyDiagnosis.ClinicDiagnosis',
      show: '过敏药物诊断',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VAllergyDiagnosis.DiagnosisICDCode',
      show: '过敏药物北京诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'VAllergyDiagnosis.DiagnosisICDName',
      show: '过敏药物北京诊断',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Diagnosis',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'VAllergyDiagnosis.InternalICDCode',
      show: '过敏药物协和诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'VAllergyDiagnosis.InternalICDName',
      show: '过敏药物协和诊断',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Diagnosis',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    // {
    //   name: "VAllergyDiagnosis.IsBabyCode",
    //   show: "过敏药物是否婴儿编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_IsBaby",
    //   dicColumn: "IsBabyCode,IsBabyName",
    // },
    {
      name: 'VAllergyDiagnosis.IsBaby',
      show: '过敏药物是否婴儿',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IsBaby',
      dicColumn: 'IsBabyName,IsBabyCode',
    },
    // {
    //   name: "VAllergyDiagnosis.PathologyICDCode",
    //   show: "过敏北京病理编码",
    //         selected: false,
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_ICD_Morphology",
    //   dicColumn: "ICD_Code,ICD_Name",
    // },
    // {
    //   name: "VAllergyDiagnosis.PathologyICDName",
    //   show: "过敏北京病理",
    //         selected: false,

    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_ICD_Morphology",
    //   dicColumn: "ICD_Name,ICD_Code",
    // },
    {
      name: 'VAllergyDiagnosis.PathologyNum',
      show: '过敏药物病理号',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VAllergyDiagnosis.GBICDCode',
      show: '过敏国标诊断编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Diagnosis',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'VAllergyDiagnosis.GBICDName',
      show: '过敏国标诊断名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Diagnosis',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
    {
      name: 'VAllergyDiagnosis.PathologyGBICDCode',
      show: '过敏病理国标编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Morphology',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'VAllergyDiagnosis.PathologyGBICDName',
      show: '过敏病理国标名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Morphology',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
  ];
  public SurgeryConditionList: queryCondition[] = [
    {
      name: 'VSurgery.ClinicalOperateName',
      show: '临床手术名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VSurgery.OperateICDCode',
      show: '北京手术编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Operate',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'VSurgery.OperateICDName',
      show: '北京手术名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Operate',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'VSurgery.InternalICDCode',
      show: '协和手术编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Operate',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'VSurgery.InternalICDName',
      show: '协和手术名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Operate',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'VSurgery.OperateLevel',
      show: '手术级别',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_OperationLevel',
      dicColumn: 'OperationLevel',
    },
    {
      name: 'VSurgery.OperatorName',
      show: '手术术者',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'VSurgery.OperateOrder',
      show: '手术顺序',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VSurgery.Anesthesiologist',
      show: '手术麻醉医生',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    // {
    //   name: "VSurgery.AnesthesiaLevelCode",
    //   show: "手术麻醉分级编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_AnesthesiaLevel",
    //   dicColumn: "AnesthesiaLevelCode,AnesthesiaLevel",
    // },
    {
      name: 'VSurgery.AnesthesiaLevel',
      show: '手术麻醉分级',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_AnesthesiaLevel',
      dicColumn: 'AnesthesiaLevel,AnesthesiaLevelCode',
    },

    // {
    //   name: "VSurgery.AnesthesiaTypeCode",
    //   show: "手术麻醉方式编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Anesthesia",
    //   dicColumn: "AnesthesiaCode,Anesthesia",
    // },
    {
      name: 'VSurgery.AnesthesiaType',
      show: '手术麻醉方式',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Anesthesia',
      dicColumn: 'Anesthesia,AnesthesiaCode',
    },
    // {
    //   name: "VSurgery.CicatrizeCode",
    //   show: "愈合等级编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_IncisionHealingLevel",
    //   dicColumn: "IncisionHealingLevelCode,IncisionHealingLevel",
    // },
    {
      name: 'VSurgery.Cicatrize',
      show: '愈合等级',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IncisionHealingLevel',
      dicColumn: 'IncisionHealingLevel,IncisionHealingLevelCode',
    },
    {
      name: 'VSurgery.FirstAssistantSurgeon',
      show: 'I助',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'VSurgery.SecondAssistantName',
      show: 'II助',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'VSurgery.BeforeOperateTime',
      show: '手术前时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VSurgery.AfterOperateTime',
      show: '手术后时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VSurgery.OperateDuringTime',
      show: '手术时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VSurgery.OperateBeginTime',
      show: '手术开始时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VSurgery.OperateEndTime',
      show: '手术结束时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VSurgery.GBICDCode',
      show: '手术国标编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Operate',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'VSurgery.GBICDName',
      show: '手术国标名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Operate',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
    {
      name: 'BaseVSurgery.ClinicalOperateName',
      show: '主临床手术名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVSurgery.OperateICDCode',
      show: '主北京手术编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Operate',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'BaseVSurgery.OperateICDName',
      show: '主北京手术名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Operate',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'BaseVSurgery.InternalICDCode',
      show: '主协和手术编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Operate',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'BaseVSurgery.InternalICDName',
      show: '主协和手术名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Operate',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'BaseVSurgery.OperateLevel',
      show: '主手术级别',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_OperationLevel',
      dicColumn: 'OperationLevel',
    },
    {
      name: 'BaseVSurgery.OperatorName',
      show: '主手术术者',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'BaseVSurgery.Anesthesiologist',
      show: '主手术麻醉医生',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'BaseVSurgery.AnesthesiaLevel',
      show: '主手术麻醉分级',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_AnesthesiaLevel',
      dicColumn: 'AnesthesiaLevel,AnesthesiaLevelCode',
    },
    {
      name: 'BaseVSurgery.AnesthesiaType',
      show: '主手术麻醉方式',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Anesthesia',
      dicColumn: 'Anesthesia,AnesthesiaCode',
    },
    {
      name: 'BaseVSurgery.Cicatrize',
      show: '主愈合等级',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IncisionHealingLevel',
      dicColumn: 'IncisionHealingLevel,IncisionHealingLevelCode',
    },
    {
      name: 'BaseVSurgery.FirstAssistantSurgeon',
      show: '主I助',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'BaseVSurgery.SecondAssistantName',
      show: '主II助',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'BaseVSurgery.BeforeOperateTime',
      show: '主手术前时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVSurgery.AfterOperateTime',
      show: '主手术后时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVSurgery.OperateDuringTime',
      show: '主手术时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVSurgery.OperateBeginTime',
      show: '主手术开始时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVSurgery.OperateEndTime',
      show: '主手术结束时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVSurgery.GBICDCode',
      show: '主手术国标编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Operate',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'BaseVSurgery.GBICDName',
      show: '主手术国标名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Operate',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
  ];
  public OperateConditionList: queryCondition[] = [
    {
      name: 'VOperate.ClinicalOperateName',
      show: '临床操作名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VOperate.OperateICDCode',
      show: '北京操作编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Operate',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'VOperate.OperateICDName',
      show: '北京操作名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Operate',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'VOperate.InternalICDCode',
      show: '协和操作编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Operate',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'VOperate.InternalICDName',
      show: '协和操作名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Operate',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'VOperate.OperateLevel',
      show: '操作级别',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_OperationLevel',
      dicColumn: 'OperationLevel',
    },
    {
      name: 'VOperate.OperatorName',
      show: '操作术者',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'VOperate.OperateOrder',
      show: '操作顺序',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VOperate.Anesthesiologist',
      show: '操作麻醉医生',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    // {
    //   name: "VOperate.AnesthesiaLevelCode",
    //   show: "操作麻醉分级编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_AnesthesiaLevel",
    //   dicColumn: "AnesthesiaLevelCode,AnesthesiaLevel",
    // },
    {
      name: 'VOperate.AnesthesiaLevel',
      show: '操作麻醉分级',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_AnesthesiaLevel',
      dicColumn: 'AnesthesiaLevel,AnesthesiaLevelCode',
    },
    // {
    //   name: "VOperate.AnesthesiaTypeCode",
    //   show: "操作麻醉方式编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Anesthesia",
    //   dicColumn: "AnesthesiaCode,Anesthesia",
    // },
    {
      name: 'VOperate.AnesthesiaType',
      show: '操作麻醉方式',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Anesthesia',
      dicColumn: 'Anesthesia,AnesthesiaCode',
    },
    // {
    //   name: "VOperate.CicatrizeCode",
    //   show: "操作愈合等级编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_IncisionHealingLevel",
    //   dicColumn: "IncisionHealingLevelCode,IncisionHealingLevel",
    // },
    {
      name: 'VOperate.Cicatrize',
      show: '操作愈合等级',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IncisionHealingLevel',
      dicColumn: 'IncisionHealingLevel,IncisionHealingLevelCode',
    },
    {
      name: 'VOperate.FirstAssistantSurgeon',
      show: '操作I助',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'VOperate.SecondAssistantName',
      show: '操作II助',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'VOperate.OperateBeginTime',
      show: '操作开始时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VOperate.OperateEndTime',
      show: '操作结束时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VOperate.GBICDCode',
      show: '操作国标编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Operate',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'VOperate.GBICDName',
      show: '操作国标名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Operate',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
    {
      name: 'VOperate.BeforeOperateTime',
      show: '操作前时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VOperate.AfterOperateTime',
      show: '操作后时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VOperate.OperateDuringTime',
      show: '操作时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },

    {
      name: 'BaseVOperate.ClinicalOperateName',
      show: '主临床操作名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVOperate.OperateICDCode',
      show: '主北京操作编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Operate',
      dicColumn: 'ICD_Code,ICD_Name',
    },
    {
      name: 'BaseVOperate.OperateICDName',
      show: '主北京操作名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Operate',
      dicColumn: 'ICD_Name,ICD_Code',
    },
    {
      name: 'BaseVOperate.InternalICDCode',
      show: '主协和操作编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Operate',
      dicColumn: 'InternalICDCode,InternalICDName',
    },
    {
      name: 'BaseVOperate.InternalICDName',
      show: '主协和操作名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_ICD_Internal_Operate',
      dicColumn: 'InternalICDName,InternalICDCode',
    },
    {
      name: 'BaseVOperate.OperateLevel',
      show: '主操作级别',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_OperationLevel',
      dicColumn: 'OperationLevel',
    },
    {
      name: 'BaseVOperate.OperatorName',
      show: '主操作术者',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'BaseVOperate.Anesthesiologist',
      show: '主操作麻醉医生',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'BaseVOperate.AnesthesiaLevel',
      show: '主操作麻醉分级',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_AnesthesiaLevel',
      dicColumn: 'AnesthesiaLevel,AnesthesiaLevelCode',
    },
    {
      name: 'BaseVOperate.AnesthesiaType',
      show: '主操作麻醉方式',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Anesthesia',
      dicColumn: 'Anesthesia,AnesthesiaCode',
    },
    {
      name: 'BaseVOperate.Cicatrize',
      show: '主操作愈合等级',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IncisionHealingLevel',
      dicColumn: 'IncisionHealingLevel,IncisionHealingLevelCode',
    },
    {
      name: 'BaseVOperate.FirstAssistantSurgeon',
      show: '主操作I助',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'BaseVOperate.SecondAssistantName',
      show: '主操作II助',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'BaseVOperate.OperateBeginTime',
      show: '主操作开始时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVOperate.OperateEndTime',
      show: '主操作结束时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVOperate.GBICDCode',
      show: '主操作国标编码',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Operate',
      dicColumn: 'TargetICDCode,TargetICDName',
    },
    {
      name: 'BaseVOperate.GBICDName',
      show: '主操作国标名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Map_Operate',
      dicColumn: 'TargetICDName,TargetICDCode',
    },
    {
      name: 'BaseVOperate.BeforeOperateTime',
      show: '主操作前时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVOperate.AfterOperateTime',
      show: '主操作后时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'BaseVOperate.OperateDuringTime',
      show: '主操作时间（小时）',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
  ];
  public FeeConditionList: queryCondition[] = [
    {
      name: 'VFee.诊查费',
      show: '诊查费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.接生费',
      show: '接生费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.床位费',
      show: '床位费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.一般治疗费',
      show: '一般治疗费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.检查用一次性医用材料费',
      show: '检查用一次性医用材料费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.介入用一次性医用材料费',
      show: '介入用一次性医用材料费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.监护及辅助呼吸设备费',
      show: '监护及辅助呼吸设备费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.白蛋白类制品费',
      show: '白蛋白类制品费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.超声费',
      show: '超声费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.费用值',
      show: '费用值',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.核素检查',
      show: '核素检查',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.核素治疗',
      show: '核素治疗',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.挂号费',
      show: '挂号费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.输氧费',
      show: '输氧费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.护理费',
      show: '护理费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.护理治疗费',
      show: '护理治疗费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.病理费',
      show: '病理费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.化验费',
      show: '化验费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.放射费',
      show: '放射费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.一般检查费',
      show: '一般检查费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.介入治疗费',
      show: '介入治疗费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.精神治疗费',
      show: '精神治疗费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.康复治疗费',
      show: '康复治疗费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.抗菌药物费',
      show: '抗菌药物费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.临床物理治疗费',
      show: '临床物理治疗费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.麻醉费',
      show: '麻醉费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.凝血因子类制品费',
      show: '凝血因子类制品费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.其他',
      show: '其他',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.球蛋白类制品费',
      show: '球蛋白类制品费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.手术费',
      show: '手术费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.手术用一次性医用材料费',
      show: '手术用一次性医用材料费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.输血费',
      show: '输血费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.特殊治疗费',
      show: '特殊治疗费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.西药费',
      show: '西药费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.细胞因子类制品费',
      show: '细胞因子类制品费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.治疗用一次性医用材料费',
      show: '治疗用一次性医用材料费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.中草药费',
      show: '中草药费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.中成药费',
      show: '中成药费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VFee.中医治疗费',
      show: '中医治疗费',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
  ];
  public DoctorConditionList: queryCondition[] = [
    {
      name: 'Doctor.住院医师.姓名',
      show: '住院医师',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'Doctor.质控医师.姓名',
      show: '质控医师',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'Doctor.质控护士.姓名',
      show: '质控护士',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'Doctor.进修医师.姓名',
      show: '进修医师',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'Doctor.科主任.姓名',
      show: '科主任',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'Doctor.主任医师.姓名',
      show: '主任医师',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'Doctor.主治医师.姓名',
      show: '主治医师',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'Doctor.进修护士.姓名',
      show: '进修护士',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'Doctor.主诊医师.姓名',
      show: '主诊医师',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },

    {
      name: 'Doctor.责任护士.姓名',
      show: '责任护士',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
    {
      name: 'Doctor.实习医师.姓名',
      show: '实习医师',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_User',
      dicColumn: 'Name,EmployeeId,Note',
    },
  ];
  public TransConditionList: queryCondition[] = [
    {
      name: 'VTransfer.TransferOrder',
      show: '转科顺序码',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VTransfer.NewDepCode',
      show: '转入科室编码',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_Department',
      dicColumn: 'DepCode,Name',
    },
    {
      name: 'VTransfer.NewDeptName',
      show: '转入科室',
      selected: false,
      options: [],
      db: 'SecurityDB',
      datatype: '',
      dictable: 'Base_Department',
      dicColumn: 'Name,DepCode',
    },
    {
      name: 'VTransfer.TransferDate',
      show: '转入时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
  ];
  public ContactCondition: queryCondition[] = [
    {
      name: 'Adress',
      show: '联系人住址',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'HukouAddressDetail',
      show: '户口住址详细地址',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    // {
    //   name: "HukouAreaCode",
    //   show: "户口地址(县)编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_Area",
    //   dicColumn: "AreaCode,AreaName",
    // },
    {
      name: 'HukouArea',
      show: '户口地址(县)',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_Area',
      dicColumn: 'AreaName,AreaCode',
    },
    // {
    //   name: "HukouCityCode",
    //   show: "户口地址(市)编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_City",
    //   dicColumn: "CityCode,CityName",
    // },
    {
      name: 'HukouCity',
      show: '户口地址(市)',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_City',
      dicColumn: 'CityName,CityCode',
    },
    // {
    //   name: "HukouProvinceCode",
    //   show: "户口地址(省)编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_Province",
    //   dicColumn: "ProvinceCode,ProvinceName",
    // },
    {
      name: 'HukouProvince',
      show: '户口地址(省)',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_Province',
      dicColumn: 'ProvinceName,ProvinceCode',
    },
    {
      name: 'HukouPostCode',
      show: '户口地址邮编',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'CurrentAddressDetail',
      show: '现在住址详细地址',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    // {
    //   name: "CurrentAreaCode",
    //   show: "现在地址（县）编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_Area",
    //   dicColumn: "AreaCode,AreaName",
    // },
    {
      name: 'CurrentArea',
      show: '现在地址（县）',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_Area',
      dicColumn: 'AreaName,AreaCode',
    },
    // {
    //   name: "CurrentCityCode",
    //   show: "现在地址（市）编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_City",
    //   dicColumn: "CityCode,CityName",
    // },
    {
      name: 'CurrentCity',
      show: '现在地址（市）',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_City',
      dicColumn: 'CityName,CityCode',
    },
    // {
    //   name: "CurrentProvinceCode",
    //   show: "现在地址（省）编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "BaseDic_Province",
    //   dicColumn: "ProvinceCode,ProvinceName",
    // },
    {
      name: 'CurrentProvince',
      show: '现在地址（省）',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'BaseDic_Province',
      dicColumn: 'ProvinceName,ProvinceCode',
    },
    {
      name: 'CurrentPostCode',
      show: '现在住址邮编',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'WorkPostcode',
      show: '单位邮编',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'WorkTelephone',
      show: '单位电话',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'WorkUnit',
      show: '工作单位及地址',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VContact.PhoneNum',
      show: '联系人电话',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
  ];
  public OthersConditionList: queryCondition[] = [
    // {
    //   name: "MCode",
    //   show: "肿瘤分期(M)编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Metastasis",
    //   dicColumn: "MetastasisCode,MetastasisName",
    // },
    {
      name: 'M',
      show: '肿瘤分期(M)',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Metastasis',
      dicColumn: 'MetastasisName,MetastasisCode',
    },
    // {
    //   name: "NCode",
    //   show: "肿瘤分期(N)编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_LymphNode",
    //   dicColumn: "LymphNodeCode,LymphNodeName",
    // },
    {
      name: 'N',
      show: '肿瘤分期(N)',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_LymphNode',
      dicColumn: 'LymphNodeName,LymphNodeCode',
    },
    // {
    //   name: "TCode",
    //   show: "肿瘤分期(T)编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_TumorTNM",
    //   dicColumn: "TumorTNMCode,TumorTNM",
    // },
    {
      name: 'T',
      show: '肿瘤分期(T)',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_TumorTNM',
      dicColumn: 'TumorTNM,TumorTNMCode',
    },
    // {
    //   name: "TumorclinicalCode",
    //   show: "肿瘤临床分期编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Tumorclinical",
    //   dicColumn: "TumorclinicalCode,Tumorclinical",
    // },
    {
      name: 'Tumorclinical',
      show: '肿瘤临床分期',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Tumorclinical',
      dicColumn: 'Tumorclinical,TumorclinicalCode',
    },
    {
      name: 'VICU.EntryTime',
      show: '进重症监护室时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VICU.OutTime',
      show: '出重症监护室时间',
      selected: false,
      options: [],
      db: '',
      datatype: 'date',
      dictable: '',
      dicColumn: '',
    },
    // {
    //   name: "VContact.RelationCode",
    //   show: "联系人关系编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_Relationship",
    //   dicColumn: "RelationshipCode,RelationshipName",
    // },
    {
      name: 'VContact.Relation',
      show: '联系人关系',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_Relationship',
      dicColumn: 'RelationshipName,RelationshipCode',
    },

    {
      name: 'DCPCIAfterDay',
      show: '脑损伤患者昏迷时间  入院后  天',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'DCPCIAfterHour',
      show: '脑损伤患者昏迷时间  入院后  时',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'DCPCIAfterMinute',
      show: '脑损伤患者昏迷时间  入院后  分',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'DCPCIBeforeDay',
      show: '脑损伤患者昏迷时间  入院前  天',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'DCPCIBeforeHour',
      show: '脑损伤患者昏迷时间  入院前  时',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'DCPCIBeforeMinute',
      show: '脑损伤患者昏迷时间  入院前  分',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VContact.ContactName',
      show: '联系人姓名',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: '',
      dicColumn: '',
    },
    // {
    //   name: "VICU.ICUCode",
    //   show: "重症监护室名称编码",
    //   selected: false,
    //   options: [],
    //   db: "",
    //   datatype: "",
    //   dictable: "Dic_IcuType",
    //   dicColumn: "ICUCode,ICUName",
    // },
    {
      name: 'VICU.ICUName',
      show: '重症监护室名称',
      selected: false,
      options: [],
      db: '',
      datatype: '',
      dictable: 'Dic_IcuType',
      dicColumn: 'ICUName,ICUCode',
    },
    {
      name: 'DiagnosisCount',
      show: '出院诊断数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VAllergyDiagnosisCount',
      show: '过敏诊断数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VClinicDiagnosisCount',
      show: '门急诊诊断数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VOperateCount',
      show: '操作数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VSurgeryCount',
      show: '手术数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VICUCount',
      show: 'ICU数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VTransferCount',
      show: '转科数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
    {
      name: 'VContactCount',
      show: '联系人数',
      selected: false,
      options: [],
      db: '',
      datatype: 'num',
      dictable: '',
      dicColumn: '',
    },
  ];

  public maxpubsources: number = 15;
  public maxkeywords: number = 15;

  public aggregationtypes: string[] = [
    '结果计数',
    '去重计数',
    '前缀计数',
    '后缀计数',
    '分组计数',
    '基本统计信息',
    '详细统计信息',
    '分布统计',
    '区间计数',
    '联合分组计数',
    '联合分组平均',
    '联合分组求和',
    '联合分组最大',
    '联合分组最小',
    '联合分组区间',
    '联合分组前缀',
    '联合分组后缀',
  ];
  public results: any[] = [];
  public tableresults: any[] = [];
  public resultObjectProperties: string[] = [];
  public aggregationresult = {
    //totalhits: 0,
    spends: 0,
    statisticResult: [],
    combined: [],
    //expression:agg
  };

  public aggregation: Aggregation = new Aggregation();
  public query: Query = new Query();

  public selecteddoc: string[] = [];

  public actionType = 'model'; //value is agg or query or search
  public busyIndicatorVisible = false;
  public queryAllColumnShow = false;
  public validOperation = {
    str: [
      'Eq',
      '>',
      '<',
      '>=',
      '<=',
      'in',
      'between',
      'pre',
      'pst',
      'emptywild',
      'empty',
      'notempty',
      'asyp',
    ],
    date: ['Eq', '>', '<', '>=', '<=', 'in', 'between', 'empty', 'notempty'],
    num: ['Eq', '>', '<', '>=', '<=', 'in', 'between', 'empty', 'notempty'],
  };
  public validAggregation = {
    str: [
      '结果计数',
      '去重计数',
      '前缀计数',
      '后缀计数',
      '分组计数',
      '区间计数',
      '联合分组计数',
      '联合分组最大',
      '联合分组最小',
      '联合分组区间',
      '联合分组前缀',
      '联合分组后缀',
    ],
    date: [
      '结果计数',
      '去重计数',
      '分组计数',
      '区间计数',
      '联合分组计数',
      '联合分组最大',
      '联合分组最小',
      '联合分组区间',
    ],
    num: [
      '结果计数',
      '去重计数',
      '分组计数',
      '基本统计信息',
      '详细统计信息',
      '分布统计',
      '区间计数',
      '联合分组计数',
      '联合分组平均',
      '联合分组求和',
      '联合分组最大',
      '联合分组最小',
      '联合分组区间',
    ],
  };
  public modelList: QueryPackage[] = [];
  public version = '3.00(20200927)';
}
export class queryOption {
  value: string;
  show: string;
}
export class queryCondition {
  name: string;
  show: string;
  selected: boolean;
  datatype: string;
  dicColumn: string;
  dictable: string;
  db: string;
  options: queryOption[];
  constructor() {
    this.name = '';
    this.show = '';
    this.selected = false;
    this.db = '';

    this.datatype = '';
    this.dicColumn = '';
    this.dictable = '';
    this.options = [];
  }
}
